import com.dmotiko.bolacua.*
import com.dmotiko.general.*

class MainPhotosLoader
extends DataXMLLoader {

	private function parserFunction(){
		var news:Array = xml.firstChild.childNodes;
			var newsData:Array = new Array();
			var photoData:PhotoData;
			for (var i:Number = 0; i < news.length; i++) {
				var o = news[i].attributes;
				photoData = new PhotoData(i, o.title, o.description, undefined, o.src, o.horizontal == "true", undefined);
				newsData.push(photoData);
			}
		this.data = newsData;
		loadEnd();
	}
	
}